package com.woniuxy.enjoylife.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniuxy.enjoylife.entity.Community;
import com.woniuxy.enjoylife.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//用于查询投诉页所需内容
public class SuggestDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //投诉者id
    private Integer uid;
    //投诉的小区id
    private Integer cid;
    //投诉内容
    private String content;
    //投诉时间
    private LocalDateTime suggestTime;
    //回复者id，即物业id
    private Integer reuid;
    //回复内容
    private String reply;
    //回复时间
    private LocalDateTime replyTime;
    //是否处理
    private String result;
    //是否删除  0：未删除   1：已删除
    private Integer status;
    //根据uid查用户
    private User user;
    //根据cid查小区
    private Community community;
}
